﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////

// NotReviewedButNeeded
#pragma once

#include "GcmpGeometryInterface.h"

namespace gcmp
{
    class IGeometryFactory;
    class IBodyFactory;
    class IAlgorithmFactory;
    
    ///几何工厂管理器,用于程序初始化时设置几何工厂
    class GCMP_GEOMETRY_INTERFACE_EXPORT GeometryFactoryManager
    {
    public:
        /// 获取几何工厂管理器
        static GeometryFactoryManager* Get();

        /// 设置几何工厂
        /// \param pGeometryFactory  几何工厂
        virtual void SetGeometryFactory(const IGeometryFactory *pGeometryFactory) = 0;

        /// 获取几何创建工厂
        virtual const IGeometryFactory* GetGeometryFactory() const = 0;

        /// 设置体工厂
        /// \param pBodyFactory  体工厂
        virtual void SetBodyFactory(const IBodyFactory *pBodyFactory) = 0;

        ///获取几何体创建工厂
        virtual const IBodyFactory* GetBodyFactory() const = 0;

        ///获取几何造型算法工厂
        virtual const IAlgorithmFactory* GetAlgorithmFactory() const = 0;

        /// 设置几何算法工厂
        /// \param pFactory  算法工厂
        virtual void SetAlgorithmFactory(const IAlgorithmFactory *pFactory) = 0;
     };
}


